﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.Composition.Hosting;

namespace ShredTheLog.Api
{
    public static class Globals
    {
        public static CompositionContainer CompositionContainer { get; set; }
        
        public static IShredServices ShredServices
        {
            get 
            {
                if (_shredServices == null)
                    _shredServices = CompositionContainer.GetExportedValue<IShredServices>();
                return _shredServices;
            }
        }
        private static IShredServices _shredServices;
    }
}
